using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 特殊红冲流程发票明细表
    /// </summary>
    [SugarTable("RedRushApplication")]
    public class RedRushApplication : BaseHead
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string RedRushApplication_Name { get; set; }

        /// <summary>
        ///  状态 ,.未启用，1启用，2禁用
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///  创建人Id
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateUser { get; set; }

        /// <summary>
        /// 发票所属公司
        /// </summary>
        public string InvoiceCompany { get; set; }

        /// <summary>
        /// 发票所述大区
        /// </summary>
        public string InvoiceArea { get; set; }

        /// <summary>
        /// 发票所属销售部
        /// </summary>
        public string InvoiceSalesDepartment { get; set; }

        /// <summary>
        /// 渠道
        /// </summary>
        public string Channel { get; set; }

        /// <summary>
        /// 客户需要开票日期
        /// </summary>
        public DateTime? CustomerNeedsInvoiceDate { get; set; }

        /// <summary>
        /// 是否使用新特价合同
        /// </summary>
        public bool? IsUseNewSpecialContract { get; set; }

        /// <summary>
        /// 发票类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 是否加急
        /// </summary>
        public bool? IsExpedited { get; set; }

        /// <summary>
        /// 原客户代码
        /// </summary>
        public string OriginCustomCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomType { get; set; }

        /// <summary>
        /// 红冲类型
        /// </summary>
        public string RedRushType { get; set; }

        /// <summary>
        /// 物流关联编号
        /// </summary>
        public string TrackNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 申请类型
        /// </summary>
        public int? ApplicationType { get; set; }

        /// <summary>
        /// 新客户合同/订单
        /// </summary>
        public string NewCustomContract { get; set; }

        /// <summary>
        /// 新客户代码
        /// </summary>
        public string NewCustomCode { get; set; }

        /// <summary>
        /// 新客户名称
        /// </summary>
        public string NewCustomName { get; set; }

        /// <summary>
        /// 新商机号
        /// </summary>
        public string NewOpportunityNo { get; set; }

        /// <summary>
        /// 原商机号
        /// </summary>
        public string OriginOpportunityNo { get; set; }

        /// <summary>
        /// 客户和新客户的关系
        /// </summary>
        public string NewCustomersAndCustomerRelationships { get; set; }

        /// <summary>
        /// 新客户签收的出货单
        /// </summary>
        public string ShipmentsSignedByNewCustomers { get; set; }

        /// <summary>
        /// 手工发票--工程预开 上传附件
        /// </summary>
        public string ManualEngineering { get; set; }

        /// <summary>
        /// 上传红字通知单
        /// </summary>
        public string UploadRedLetterNotice { get; set; }

        /// <summary>
        /// 是否购买方红字通知单
        /// </summary>
        public bool? IsPurchaserRedLetterNotice { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public string Approvers { get; set; }

        /// <summary>
        /// 流程类型
        /// </summary>
        public int? FlowInstType { get; set; }

        /// <summary>
        /// 渠道名字
        /// </summary>
        public string ChannelName { get; set; }

        /// <summary>
        /// 推送SAP 信息状态
        /// </summary>
        public int? PushSapState { get; set; }

        /// <summary>
        /// 流程枚举类型
        /// </summary>
        public string PageType { get; set; }

        /// <summary>
        /// 发票所属公司名称
        /// </summary>
        public string InvoiceCompanyCode { get; set; }

        /// <summary>
        /// 发票所属销售部
        /// </summary>
        public string InvoiceSalesDepartmentName { get; set; }

        /// <summary>
        /// 红冲类型名字
        /// </summary>
        public string RedRushTypeName { get; set; }

        /// <summary>
        /// 申请类型名字
        /// </summary>
        public string ApplicationTypeName { get; set; }

        /// <summary>
        /// 发票所属大区名称
        /// </summary>
        public string InvoiceAreaName { get; set; }

        /// <summary>
        /// UserCode
        /// </summary>
        public string UserCode { get; set; }

        /// <summary>
        /// UserName
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 发票类型名字
        /// </summary>
        public string InvoiceTypeName { get; set; }

        /// <summary>
        /// 价格专员上传附件
        /// </summary>
        public string PriceSpecialist { get; set; }

        /// <summary>
        /// 客户分类名称
        /// </summary>
        public string CustomerTypeName { get; set; }

        /// <summary>
        /// 票易通抄送人
        /// </summary>
        public string PytCCUserID { get; set; }

        /// <summary>
        /// 票易通抄送人姓名
        /// </summary>
        public string PytCCUserName { get; set; }

        /// <summary>
        /// 发布附件
        /// </summary>
        public string PytIssueAttachment { get; set; }

        /// <summary>
        /// 发票岗人员姓名
        /// </summary>
        public string InvoicePostName { get; set; }

        /// <summary>
        /// 发票岗人员
        /// </summary>
        public string InvoicePostId { get; set; }

        /// <summary>
        /// 共享岗姓名
        /// </summary>
        public string SharedPostName { get; set; }

        /// <summary>
        /// 共享岗
        /// </summary>
        public string SharedPostId { get; set; }

        /// <summary>
        /// 流程说明
        /// </summary>
        public string FlowDescription { get; set; }

        /// <summary>
        /// 票易通SAP操作
        /// </summary>
        public string IspytSAP { get; set; }

        /// <summary>
        /// 是否手工输入
        /// </summary>
        public string IsHistoryBill { get; set; }

        public int? ProcInstId { get; set; }

        public string XML { get; set; }

        public bool InvoicePostInit { get; set; }

        /// <summary>
        /// 发票方名称
        /// </summary>
        public string InvoiceCustomName { get; set; }

        public string ALLInvoceType { get; set; }

        public string FlowState { get; set; }

        public string ProcessName { get; set; }

        /// <summary>
        /// 开票内容
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<RedRushManualInvoice> lineData { get; set; }

        /// <summary>
        /// 开票内容（手工入账）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<RedRushManualInvoice> handLineData { get; set; }

        public bool isHand { get; set; }
        public bool isUrgent { get; set; }

        public string recipientId { get; set; }

        public string recipientName { get; set; }

        public string recipientEmail { get; set; }

    }
}
